<template>
  <div class="author">
    <div class="head">
      <img :src="userInfo.headerImg" alt="">
    </div>
    <img class="icon" src="@/assets/user.png">
    <div class="tag">{{userInfo.nickname}}</div>
    <img class="icon" src="@/assets/youxiang.png">
    <div class="tag">{{userInfo.username}}</div>
    <img class="icon" src="@/assets/xunzhang.png">
    <div class="tag">{{userInfo.occ}}</div>
    <img class="icon" src="@/assets/biaoqian.png">
    <div class="tag">{{userInfo.intro}}</div>
  </div>
</template>

<script >
import { adminInfo } from "@/api/index.js";
export default {
  name: "userInfo",
  data() {
    return {
      userInfo:{}
    };
  },
  created() {
    this.getUserInfo();
  },
  methods: {
    getUserInfo(params = {}){
      adminInfo(params).then((res)=>{
        this.userInfo = res.data
      })
    }
  },
};
</script>

<style lang="scss" scoped>
.author {
  height: 520px;
  width: 400px;
  background-color: rgba(191, 227, 249, 1);
  padding:60px;
  padding-top: 0px;
  overflow: hidden;
  border-radius: 5px;
  .icon{
    width: 15px;
  }
  .tag{
    margin-top: 0px;
    margin-bottom: 15px !important;
    font-size: 13px;
    color: #00304d;
  }
  .head {
    padding: 20px 10px;
    padding-bottom: 30px;
    text-align: center;
    img {
      display: inline-block;
      width: 80px;
      height: 80px;
      border-radius: 100%;
      margin-top: 20px;
    }
  }
  .row {
    padding: 10px 15px;
    border-top: 1px solid #f1f1f1;
    img {
      width: 30px;
      height: 30px;
      display: inline-block;
      border-radius: 100%;
      background-color: #f1f1f1;
      border: 1px solid #f1f1f1;
    }
    span {
      padding-left: 10px;
      font-size: 13px;
      color: #222;
    }
  }
}
</style>